Hello Joe,
Regrettably, you will need to develop a custom transformation method to create a link to user profile in a format which will cover your needs. In general the transformation method could look like following one:
public static string GetCustomUserProfileURL (object userIDObj)
{
string userID = ValidationHelper.GetString(userIDObj, "");
string profileUrl = SettingsKeyProvider.GetStringValue(CMSContext.CurrentSiteName + ".CMSMemberProfilePath");
if (!String.IsNullOrEmpty(profileUrl))
{
return CMS.GlobalHelper.UrlHelper.ResolveUrl(TreePathUtils.GetUrl(profileUrl.ToLower().Replace("{userid}", userID), null));
}
return "";
}
You will need to change the Member profile path in
Site manager -> Settings -> Community -> Member profile path: /Members/{UserID}To invoke this transformation method you can use following expression:
<%# MyFunctions.GetCustomUserProfileURL (GetSearchValue("UserID")) %>
If you need more information about custom transformation methods, please take a look at following
articleBest regards,
Michal Legen